package cn.edu.scau.cmi.chenxiaoqin.simpleFactoryMethod;

public class MeatFactory {
	public static Meat getMeat(String meatType) {
		Meat meat = null;
		switch (meatType) {
		case "牛肉":
			meat = new Beef();break;
		case "鸡肉":
			meat = new Chicken();break;
		case "猪肉":
			meat = new Pork();break;
		}
		return meat;
	}
}
